#!/usr/bin/env python
# -*- coding: utf-8 -*-#

#-------------------------------------------------------------------------------
# Name:         lab01test.py
# Description:  
# Author:       handa
# Date:         2022/4/14
#-------------------------------------------------------------------------------
'''
def double_eights(n):
    count_eight = 0
    for i in str(n):
        if count_eight >= 2:
            return True
        if int(i) == 8:
            print("e")
            print(count_eight)
            count_eight += 1
        else:
            if count_eight > 0:
                print(count_eight)
                print('-')
                count_eight -= 1


    if count_eight >= 2:
        return True
    else:
        return False

res = double_eights(2882)
print(res)
'''

print("xxx")
def k_occurrence(k,num):
    if num == 0:
        return 0

    countk = 0
    while num > 0:
        n = num % 10
        print(n)
        print(k)
        if n == k:
            countk += 1

        num = num // 10
    return countk

x = k_occurrence(5,5115)
print(x)

print("yyy")


positive = 3
while positive:
    print("positive?")
    positive -= 3